/**
 *  HTMLUtil.java        1.00 15 Nov, 2009
 *  
 *  Copyright (c) 2008 XProtean, Inc.
 *  461 S. Milpitas Blvd, Milpitas, CA, 95035, U.S.A.
 *  All rights reserved.
 * 
 *  This software is the confidential and proprietary information of 
 *  XProtean, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with XProtean Inc.
 *   
 *  gprasad      1.00    15 Nov, 2009     gprasad     Initial code
 *
 */
package org.ql.client.framework.util;

import com.google.gwt.user.client.ui.RootPanel;
import org.ql.client.framework.AppManager;
import org.ql.client.util.Log;

/**
 *
 * @author gprasad
 */
public class HTMLUtil {

    public final static String ID_FRAME_SOURCE_PROVIDER = "__gwt_historyFrame";//"hiddenframe.sourceprovider";

    public static String getHtmlContent(String sourcePath) {

        Log.out(sourcePath + " ----- ELEE ");
        String content = AppManager.getContent(sourcePath);
        Log.out(content + " ----- content ");
        return content;
    }

    public static RootPanel getMainRootPanel() {
        return RootPanel.get();
    }

    public static RootPanel getPanel(String id) {
        return RootPanel.get(id);
    }
}
